<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'lingxing.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <%
    for(int i=1;i<=5;i++)
    {
    	if(i<=3)
    	{
    		for(int k=4-i;k>=1;k--)
    		{
    			%>&nbsp;<%
    		}
    		for(int j=4-i;j<=5;)
    		{
    			if(j==3)
    			{
    				j=j+3;
    			}
    			%>*<%
    			if(j==1)
    			{
    				%>&nbsp;&nbsp;&nbsp;<%
    			}
    			if(j==2)
    			{
    				%>&nbsp;<%
    			}
    			j=j+2*i-2;
    		}%><br><%
    	}
    	else
    	{
    		for(int k=i-2;k>=1;k--)
    		{
    			%>&nbsp;<%
    		}
    		for(int j=i-2;j<=4;)
    		{
    			%>*<%
    			if(j==2)
    			{
    				%>&nbsp;<%
    			}
    			j=j+i-2;
    		}%><br><%
    	}
    }%>
  </body>
</html>
